window: Only claim a button=1 press sequence when dragging is about to happen
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 12 Jun 2014 12:15:26 +0000 (14:15 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 12 Jun 2014 12:27:35 +0000 (14:27 +0200)
commit3ef1b387bcee52a2d85be1a9ef2cbc6a3a813293
tree01097a4ad0f0b1d8a805611cf6239216fdcd8796
parent5b118a9fd768f752f3e770d7734596e239de942d
window: Only claim a button=1 press sequence when dragging is about to happen

This way plain clicks can be handled in gtkmain through the usual delivery mechanism,
and get possibly handled too by widgets holding a GTK+ grab. If window dragging is to
be started, the sequence will be claimed (and a grab will happen afterwards), notifying
properly the grabbing widget that event delivery was interrupted.

This makes it possible to dismiss popovers by clicking on window headerbars, while
still making it possible to drag the window with the popover opened.
gtk/gtkwindow.c